package com.lzh.demo;

import java.util.Scanner;

/**
 * @author liuzhihao
 * @create 2022-01-19 22:10
 */
public class demo2 {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        int m = sc.nextInt();

        if (n >= 1 && m <= 10) {
            int max = 0;
            int[][] arr = new int[n][m];

            int temp = 1;
            while (temp <= m*n) {
                int index = sc.nextInt();
                if (index >= -1000 && index <= 1000) {
                    for (int i=0; i < m; i++) {
                        for (int j = 0; j < n; j++) {
                            arr[i][j] = index;
                            if (i == m) {
                                System.out.println();
                            }
                        }
                    }
                }
            }

            for (int i=0; i < m; i++) {
                for (int j=0; j < n; j++) {



                }
            }

        }

    }

}
